Main Page | Class Hierarchy | Class List | Class Members

MPEndGame Class Reference

MP game end message (Type: 203). More...

#include <BustaNetInternal.h>

Inheritance diagram for MPEndGame:

BustaNetInternalMsg List of all members.

Public Member Functions

 MPEndGame (int playerCount)
 CONSTRUCTOR.
 MPEndGame (int playerCount, int *rankings, int *points)
 CONSTRUCTOR.
int * getRankings ()
 Returns an integer array of the rankings of the players.
int * getPoints ()
 Returns the number of points each player has accumulated in the multiplayer game.

Detailed Description

MP game end message (Type: 203).

This message is received by all players when the multiplayer game has ended.


Constructor & Destructor Documentation

MPEndGame::MPEndGame int  playerCount  ) 
 

CONSTRUCTOR.

Creates an instance of the MPEndGame class. Defines the number of players that was in the game.

Parameters:
playerCount The number of players that were in the game

MPEndGame::MPEndGame int  playerCount,
int *  rankings,
int *  points
 

CONSTRUCTOR.

Creates an instance of the MPEndGame class. Defines the number of players that was in the game as well as the rankings and points for all players.

Parameters:
playerCount The number of players that were in the game
rankings The array of rankings
points The array of points


Member Function Documentation

int * MPEndGame::getPoints  ) 
 

Returns the number of points each player has accumulated in the multiplayer game.

At the end of the game, this message contains the points that each player has accumulated in the game. This correlates directly with the rankings array. For instance, if player number 3 is at index 0 of the rankings array, the points that player 3 has accumulated in the game is in index 0 of the points array.

Returns:
The points each player has accumulated in the multiplayer game

int * MPEndGame::getRankings  ) 
 

Returns an integer array of the rankings of the players.

At the game end, the message is received. It contains the rankings of the players for the ended multiplayer game. The integer at index 0 is the identification number of the first player to drop out, and the integer at index numPlayers-1, the number of players in the game, is the winner.

Returns:
The order of rank for the ended multiplayer game


Generated on Sun Aug 14 22:24:57 2005 for BustaSandwich Networking by  doxygen 1.4.2-20050421